<#global SITE_NAME="车域网" />
<#--车身类型-->
<#global car_category = ["三厢","两厢","SUV(越野车)","MPV(面包车)"] />						

<#--进气类型-->
<#assign car_air = ["机械增压","涡轮增压","自然吸气"] />						

<#--供油方式-->
<#assign car_oiloffer = ["多点电喷","直喷"] />

<#--环保标准-->
<#assign car_environment = ["国1","国2","国3","国4","国5"] />

<#--燃油类型-->
<#assign car_oilType = ["汽油","柴油","混合动力"] />

<#--变速器类型类型-->
<#global car_shift = ["手动","自动","手自动一体"] />

<#--驱动方式-->
<#assign car_drive = ["前驱","后驱","四轮驱动"] />

<#--悬挂型式-->
<#assign car_frontHang = ["横臂式独立悬架","多连杆式独立悬架","纵臂式独立悬架","烛式独立悬架","麦弗逊式独立悬架","主动独立悬架"] />

<#--制动类型-->
<#assign car_Brake = ["盘式","鼓式","通风盘式","陶瓷通风盘式"] />

<#--助力类型-->
<#assign car_powerType = ["电动助力","液压助力"] />



<#--
======================================================================
测评报告相关
======================================================================
-->
<#--测评师等级-->
<#assign re_evaluator = ["二手车资深评估师"] />

<#--骨架部件-->
<#assign re_gujia = ["A","B","C","D","E"] />
<#--事故-->
<#assign re_shigu = ["结构部件无损伤","结构部件轻微损伤","结构部件严重损伤"] />
<#--浸水-->
<#assign re_jinshui = ["该车无浸水痕迹","该车有浸水痕迹"] />

<#assign car_ = ["正常","轻微异常","异常"] />
<#--漆面-->
<#assign car_paint = ["原厂漆或不可见修复","轻微钣金修复/轻微瑕疵","更换外观件/瑕疵"] />

<#macro r_gujia value="" name="category" class="">
<select class="${class}" name="${name}">
	<#list re_gujia as c>
	<option value="${c}" <#if value=c>selected="selected"</#if> >${c}</option>	
	</#list>
</select>
</#macro>

<#macro r_shigu value="" name="category" class="">
<select class="${class}" name="${name}">
	<#list re_shigu as c>
	<option value="${c}" <#if value=c>selected="selected"</#if> >${c}</option>	
	</#list>
</select>
</#macro>

<#--启用新的数据数据，可以自用输入-->
<#macro r_shigu2 value="" name="category" class="">
<input name="${name}" type="text" class="dfinput ${class}" value="${value}" />
</#macro>

<#macro r_jinshui value="" name="category" class="">
<select class="${class}" name="${name}">
	<#list re_jinshui as c>
	<option value="${c}" <#if value=c>selected="selected"</#if> >${c}</option>	
	</#list>
</select>
</#macro>

<#macro c_paint value="" name="category" class="">
<select class="${class}" name="${name}">
	<#list car_paint as c>
	<option value="${c}" <#if value=c>selected="selected"</#if> >${c}</option>	
	</#list>
</select>
</#macro>

<#macro c_ value="" name="category" class="">
<select class="${class}" name="${name}">
	<#list car_ as c>
	<option value="${c}" <#if value=c>selected="selected"</#if> >${c}</option>	
	</#list>
</select>
</#macro>

<#macro c_category value="" name="category" class="">
<select class="${class}" name="${name}">
	<#list car_category as c>
	<option value="${c}" <#if value=c>selected="selected"</#if> >${c}</option>	
	</#list>
</select>
</#macro>

<#macro c_air value="" name="" class="">
<select class="${class}" name="${name}">
	<#list car_air as c>
	<option value="${c}" <#if value=c>selected="selected"</#if> >${c}</option>	
	</#list>
</select>
</#macro>

<#macro c_oil value="" name="" class="">
<select class="${class}" name="${name}">
	<#list car_oiloffer as c>
	<option value="${c}" <#if value=c>selected="selected"</#if> >${c}</option>	
	</#list>
</select>
</#macro>

<#macro c_env value="" name="" class="">
<select class="${class}" name="${name}">
	<#list car_environment as c>
	<option value="${c}" <#if value=c>selected="selected"</#if> >${c}</option>	
	</#list>
</select>
</#macro>

<#macro c_oilType value="" name="" class="">
<select class="${class}" name="${name}">
	<#list car_oilType as c>
	<option value="${c}" <#if value=c>selected="selected"</#if> >${c}</option>	
	</#list>
</select>
</#macro>

<#macro c_shift value="" name="" class="">
<select class="${class}" name="${name}">
	<#list car_shift as c>
	<option value="${c}" <#if value=c>selected="selected"</#if> >${c}</option>	
	</#list>
</select>
</#macro>

<#macro c_drive value="" name="" class="">
<select class="${class}" name="${name}">
	<#list car_drive as c>
	<option value="${c}" <#if value=c>selected="selected"</#if> >${c}</option>	
	</#list>
</#macro>
<#macro c_Hang value="" name="" class="">
<select class="${class}" name="${name}">
	<#list car_frontHang as c>
	<option value="${c}" <#if value=c>selected="selected"</#if> >${c}</option>	
	</#list>
</select>
</#macro>

<#macro c_Brake value="" name="" class="">
<select class="${class}" name="${name}">
	<#list car_Brake as c>
	<option value="${c}" <#if value=c>selected="selected"</#if> >${c}</option>	
	</#list>
</select>
</#macro>

<#macro c_powerType value="" name="" class="">
<select class="${class}" name="${name}">
	<#list car_powerType as c>
	<option value="${c}" <#if value=c>selected="selected"</#if> >${c}</option>	
	</#list>
</select>
</#macro>

<#macro c_speaker value="" name="" class="">
<select class="${class}" name="${name}">
	<#list 1..10 as c>
	<option value="${c}" <#if value=c?string>selected="selected"</#if> >${c}</option>	
	</#list>
</select>
</#macro>


<#macro c_save>
<input type="hidden" name="toView" value="0" id="toView" />
<button href="javascript:;" onclick="save(1);" class="btn">保存并进入下一步</button>
<button href="javascript:;" onclick="save(0);" class="btn">仅保存</button>
<script>
	function save(type){
		$("#toView").val(type);
		$("#mainForm").submit();
		return true;
	}
</script>
</#macro>

<#macro r_evaluator value="" name="" class="">
<select class="${class}" name="${name}">
	<#list re_evaluator as c>
	<option value="${c}" <#if value=c?string>selected="selected"</#if> >${c}</option>	
	</#list>
</select>
</#macro>

<#macro carCategorySelect value="" name="" class="">
<select class="${class}" name="${name}">
	<option value="0">无</option>
	<#list categoryList as c>
	<option value="${c.id}" <#if value=c.id?string>selected="selected"</#if> >${c.name}</option>	
	</#list>
</select>
</#macro>

<#--
======================================================================
前端数据相关
======================================================================
-->
<#--汽车测评等级-->
<#global car_grade = ["测评中","一般","良好","优秀","优秀+","极优","极优+"] />

<#--首页的车身类型-->
<#macro index_category>
<#list car_category as cc>
	<a href="list.do?type=${cc}">${cc}</a>
</#list>
</#macro>

<#macro show_grade key=1>
${car_grade[key]}
</#macro>

<#--type=0时，如果不是正常，就显示”-“， type=其他时，不是正常，就显示原值-->
<#macro isOK v="" type=0 >
<#if '正常'=v><span class="detail-ok"></span><#else><#if type=0>-<#else>${v}</#if></#if>
</#macro>